package futianyu;
import java.io.Serializable;

public class Student implements Serializable {
    private static final long serialVersionUID = 1L;
    private String name;
    private int age;
    private String sex;
    private int  score;
    private int num;
    private int grade;
    public Student(String name, int age, String sex, int score, int num, int grade) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.score = score;
        this.num = num;
        this.grade = grade;
    }
    public static void main(String[] args) {



        Student student = new Student("小王", 18, "男", 90, 1001, 2022);
        System.out.print("姓名：" + student.getName()+";");
        System.out.print("年龄：" + student.getAge()+";");
        System.out.print("性别：" + student.getSex()+";");
        System.out.print("分数：" + student.getScore()+";");
        System.out.print("编号：" + student.getNum()+";");
        System.out.println("年级：" + student.getGrade()+"级;");



    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public String getSex() {
        return sex;
    }
    public void setSex(String sex) {
        this.sex = sex;
    }
    public int getScore() {
        return score;
    }
    public void setScore(int score) {
        this.score = score;
    }
    public int getNum() {
        return num;
    }
    public void setNum(int num) {
        this.num = num;
    }
    public int getGrade() {
        return grade;
    }
    public void setGrade(int grade) {
        this.grade = grade;
    }


}
